<template>
  <div class="homeHeaderWrapper">
    <span class="iconfont iconnew"></span>
    <div class="searchBox" @click="$router.push('/search')">
      <span class="iconfont iconsearch"></span>
      <span class="searchText">搜索新闻</span>
    </div>
    <span class="iconfont iconwode" @click="$router.push('/profile')"></span>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.homeHeaderWrapper {
  display: flex;
  align-items: center;
  padding: 0 18/360 * 100vw;
  background-color: #ff0000;
  color: #fff;
  .iconnew {
    font-size: 54/360 * 100vw;
  }
  .iconwode {
    font-size: 28/360 * 100vw;
  }
  .searchBox {
    flex-grow: 1;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    height: 40/360 * 100vw;
    line-height: 40/360 * 100vw;
    border-radius: 20/360 * 100vw;
    margin: 0 18/360 * 100vw;
    .searchText {
      font-size: 14/360 * 100vw;
      font-weight: bold;
    }
  }
}
</style>